import request2 from '@/utils/request2'
import { materialApiUrl } from '../../config'

/**
 *
 物资招标定标明细详情
 */
export function queryDetailsById(params, data) {
  return request2({
    url: materialApiUrl + '/materials/material-tender-selection/queryDetailsById',
    method: 'post', params, data
  })
}
/**
 物资招标定标详情
 */
export function queryById(params, data) {
  return request2({
    url: materialApiUrl + '/materials/material-tender-selection/queryById/' + params.id,
    method: 'get', params, data
  })
}

/**
 *
 物资招标定标明细详情编辑
 */
export function editByDetail(params, data) {
  return request2({
    url: materialApiUrl + '/materials/material-tender-selection/editByDetail',
    method: 'post', params, data
  })
}
/**
 *
 删除物资招标定标基本信息
 */
export function deleteByMain( data) {
  return request2({
    url: materialApiUrl + '/materials/material-tender-selection/deleteByMain',
    method: 'post', data
  })
}

/**
 新增物资招标定标基本信息
 */
export function createByMain(params, data) {
  return request2({
    url: materialApiUrl + '/materials/material-tender-selection/createByMain',
    method: 'post', params, data
  })
}
/**
 编辑物资招标定标基本信息
 */
export function editByMain(params, data) {
  return request2({
    url: materialApiUrl + '/materials/material-tender-selection/editByMain',
    method: 'post', params, data
  })
}
/**
 物资招标定标分页查询
 */
export function findListByMain(params, data) {
  return request2({
    url: materialApiUrl + '/materials/material-tender-selection/findListByMain',
    method: 'post', params, data
  })
}

/**
 * 统计
 */
export function findListCount(params, data) {
  return request2({
    url: materialApiUrl + '/materials/material-tender-selection/findListCount',
    method: 'post', params, data
  })
}
